
package com.ziyun.pop.modules.storeMember.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyun.pop.modules.remittance.entity.RemittanceEntity;
import com.ziyun.pop.modules.storeMember.vo.StoreMemberEntityVo;
import io.renren.common.utils.PageUtils;
import com.ziyun.pop.modules.storeMember.entity.StoreMemberEntity;
import io.renren.common.utils.R;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;


/**
 * 门店会员关联表
 *
 * @author jiangli
 * @email 
 * @date 2018-09-21 15:47:40
 */

public interface StoreMemberService extends IService<StoreMemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R list(Map<String, Object> params);

    R insertStoreMember(StoreMemberEntity storeMember);

    R getOneById(Long sid);

    R addAdvance(Integer memberId, BigDecimal advance,String payWay);

    void cancel(Long sid);

    R twbsave(StoreMemberEntity storeMember);

    R getMemberByName(Map<String,Object> params);

    StoreMemberEntityVo getMemberBySId(Map<String,Object> params);

    R customer(Map<String,Object> params);

    R customerManager(Integer sellerId);

    R bindBankCard(RemittanceEntity remittanceEntity);

    int repeatBuy(Integer sellerId);

    int onlineCount(Integer sellerId);

    int offlineCount(Integer sellerId);

    int onlineNewCount(Integer sellerId);

    int offlineNewCount(Integer sellerId);

    R sweepCodeBegin(Map<String,Object> params);

    R sweepCodeCallBack(Map<String, Object> params);

    R logicDelete(List<Long> sids);
}


